package project3;

public class CarShop {
    private double money = 0;
    public void sellCar(Car car) {
        System.out.println("卖出：" + car.getName() + "，价格：" + car.getPrice());
        money += car.getPrice();
    }

    public double getMoney() {
        return money;
    }
}
